]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[perf] Fix factor of ten in seconds => microseconds conversion
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 24 May 2010 04:08:00 +0000 (00:08 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 24 May 2010 04:09:40 +0000 (00:09 -0400)
Typo: 10000000 instead of 1000000 for a million. Also, use
G_INT64_CONSTANT instead of LL for a 64-bit constant, to avoid
extraneous 128-bit arithmetic on 64-bit machines.

src/shell-perf-log.c

index 262e47e153d723a5873ee7604f6c09621b716332..48ebaffb2e5b8465cc589c78afc80538ed5b0795 100644 (file)
@@ -130,7 +130,7 @@ get_time (void)
 
   g_get_current_time (&timeval);
 
-  return timeval.tv_sec * 10000000LL + timeval.tv_usec;
+  return timeval.tv_sec * G_GINT64_CONSTANT(1000000) + timeval.tv_usec;
 }
 
 static void